home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / strategy / tictac2-.000 / tictac2- / tictac2 / Makefile < prev    next >
Makefile  |  1980-01-04  |  548b  |  31 lines

  1. # make file for tictac2.  edit to needs.
  2.  
  3. PROG= tictac2
  4.  
  5. DESTDIR=/usr/games
  6. LIBDIR= $(DESTDIR)/lib
  7. MANDIR= /usr/man/man6
  8. CC=     gcc
  9. CFLAGS= -O -I/usr/include/ncurses
  10.  
  11. SRCS=    screen.c main.c moves.c ai.c 
  12.     
  13. OBJS=    screen.o main.o moves.o ai.c
  14.  
  15. LIBS=    -lncurses -ltermcap 
  16.  
  17. all:    $(PROG)
  18.  
  19. $(PROG):    $(OBJS)
  20.     $(CC) $(OBJS) $(LIBS) -o $(PROG)
  21.  
  22. $(OBJS):        tictac2.h    
  23.     $(CC) $(CFLAGS) -c $*.c -o $@
  24.  
  25. install:    all
  26.     install -c -o bin -g root -m 755 $(PROG) $(DESTDIR)
  27.     install -c -o root -g root -m 444 $(PROG).6 $(MANDIR)
  28.  
  29. clean:
  30.     rm -f $(PROG) core *.o
  31.